home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / share / initramfs-tools / hooks / busybox < prev    next >
Encoding:
Text File  |  2011-07-29  |  378 b   |  26 lines

  1. #!/bin/sh
  2.  
  3. PREREQ=""
  4.  
  5. prereqs()
  6. {
  7.     echo "$PREREQ"
  8. }
  9.  
  10. case $1 in
  11. # get pre-requisites
  12. prereqs)
  13.     prereqs
  14.     exit 0
  15.     ;;
  16. esac
  17.  
  18. # busybox
  19. if [ "${BUSYBOX}" != "n" ] && [ -e ${BUSYBOXDIR}/busybox ]; then
  20.     . /usr/share/initramfs-tools/hook-functions
  21.     rm -f ${DESTDIR}/bin/sh
  22.     rm -f ${DESTDIR}/bin/busybox
  23.     copy_exec ${BUSYBOXDIR}/busybox /bin/busybox
  24.     ln -s busybox ${DESTDIR}/bin/sh
  25. fi
  26.